package cn.alibab.cangku.controller;


import cn.alibab.cangku.service.AddressService;
import cn.alibab.common.model.R;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("address")
@CrossOrigin
public class AddressController {

    private final AddressService addressService;

    public AddressController(AddressService addressService) {
        this.addressService = addressService;
    }
    //流向追踪
    @GetMapping("finaAllAddress")
    public R finaAllAddress(){
        return addressService.finaAllAddress();
    }
}
